﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
                assembly="KuaJing.Memberships.People"
				        namespace="KuaJing.Memberships.People.Domain">

  <joined-subclass name="PersonMembership" extends="KuaJing.Memberships.Domain.Membership"
                   table="Membership_PersonMembership">
    <key column="PersonMembershipId" />
    <many-to-one name="Person" column="PersonId"
    class="KuaJing.People.Domain.Person,KuaJing.People" cascade="all" unique="true" lazy="proxy" />
    <property name="CreatedTime" access="field.camelcase" />
    <property name="CreatedUserName" access="field.camelcase" />
    <property name="ModifiedTime" access="field.camelcase" />
    <property name="ModifiedUserName" access="field.camelcase" />
    <property name="AccessedTime" access="field.camelcase" />
    <property name="AccessedUserName" access="field.camelcase" />
    <property name="Memo" />
    <property name="IsInvalid" />
  </joined-subclass>
</hibernate-mapping>